import { DEFAULT_LAYOUT,REPORT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const DASHBOARD: AppRouteRecordRaw = {
  path: '/static',
  name: 'static',
  component: REPORT_LAYOUT,
  meta: {
    locale: '整改整治工作调度汇总',
    requiresAuth: true,
    icon: 'icon-computer',
    order: 0,
    roles: ['*'],
  },
  children: [
    {
      path: 'reportStatic',
      name: 'reportStatic',
      component: () => import('@/views/static/reportStatic.vue'),
      meta: {
        locale: '整改整治工作调度汇总',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '403',
      name: '403',
      component: () => import('@/views/exception/403/index.vue'),
      meta: {
        locale: '403',
        requiresAuth: true,
        isShow:false, //在左侧隐藏
        roles: ['admin'],
      },
    },
    {
      path: '404',
      name: '404',
      component: () => import('@/views/exception/404/index.vue'),
      meta: {
        locale: '404',
        requiresAuth: true,
        isShow:false, //在左侧隐藏
        roles: ['*'],
      },
    },
    {
      path: '500',
      name: '500',
      component: () => import('@/views/exception/500/index.vue'),
      meta: {
        locale: '500',
        requiresAuth: true,
        isShow:false, //在左侧隐藏
        roles: ['*'],
      },
    },
  ],
};

export default DASHBOARD;
